﻿<%@ Page Language="C#" MasterPageFile="~/System/MasterPageTra.master" AutoEventWireup="true" CodeFile="TraHospitalQualityLevels.aspx.cs" Inherits="Supervise_TraHospitalQualityLevels" Title="Untitled Page" %>

<%@ Register Src="../System/DbPageFlip.ascx" TagName="DbPageFlip" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <script language="vbscript" type="text/vbscript">
            Sub AreaSelect(byval id)
                Dim strReturnValue
	            strReturnValue = showModalDialog("../System/AreaSelect.aspx?ROOT=" & id,null,"dialogWidth:320px;dialogHeight:480px;status:0;scroll:no;center:yes;help:no;")
	            If Len(strReturnValue) > 0 Then
	                document.all("txtAreaId").value = Split(strReturnValue,vbCrLf)(0)
	                document.all("txtAreaName").value = Split(strReturnValue,vbCrLf)(1)
	            End If
            End Sub
    </script>

    <script language="vbscript" src="../Common/yz.vbs"></script>

    <script language="javascript" src="../common/javascript/calendar.js" type="text/javascript">function Submit1_onclick() {
    </script>

    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td style="width: 4px">
                <img src="../images/intro_left.gif" width="4" height="34"></td>
            <td class="intro_wordbg">
                按用药比例查询</td>
            <td background="../images/intro_bg.gif">
                <img src="../images/intro_right.jpg" width="118" height="34"></td>
        </tr>
    </table>
    <table id="tabData" width="98%" border="1" align="center" cellpadding="2" cellspacing="1">
        <tr>
            <td align="right" style="height: 30px">
                医院注册号：</td>
            <td style="width: 282px; height: 30px;">
                <asp:TextBox ID="txtUserCode" runat="server" InvertedComma="用户编码" Width="233px"></asp:TextBox>
            </td>
            <td align="right" style="height: 30px">
                医院名称：</td>
            <td style="height: 30px">
                <asp:TextBox ID="txtAttorneyName" runat="server" InvertedComma="单位名称" Width="185px"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right" style="height: 28px">
                统计时间：</td>
            <td style="height: 28px; width: 282px;">
                从
                <asp:TextBox ID="txtStartDate" runat="server" onclick="javascript:fPopCalendar(this,this);"
                    dataType="Date" format="ymd" require="true" DateTimeOnly="开始时间" NotNull='开始时间'
                    msg="日期不存在" Width="93px"></asp:TextBox>
                到
                <asp:TextBox ID="txtEndDate" runat="server" onclick="javascript:fPopCalendar(this,this);"
                    dataType="Date" format="ymd" require="true" DateTimeOnly="结束时间" NotNull='结束时间'
                    msg="日期不存在" Width="99px"></asp:TextBox><br />
                <span style="color: #ff0033">（请点击输入框点选时间）</span></td>
            <td align="right">
                医院类型：&nbsp;</td>
            <td>
                <asp:DropDownList ID="lstDistinction" runat="server" Width="185px">
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td align="right" style="height: 28px">
                <asp:Label ID="Label1" runat="server" BorderStyle="None" Text="地区："></asp:Label></td>
            <td style="width: 282px; height: 28px">
                <asp:Label ID="labArea" runat="server" BorderStyle="None" Text=""></asp:Label></td>
            <td align="right">
                <input id="Submit1" name="subToExcel" type="submit" value="导出到Excel" class="button_bg4" style="width: 70px" />
               </td>
            <td>
                <asp:Button ID="Button6" runat="server" OnClick="Button5_Click" Text="" CssClass="button_Query"
                    OnClientClick="javascript:return CheckForm();" /></td>
        </tr>
    </table>
    <asp:GridView ID="GridView1" runat="server" Width="98%" AutoGenerateColumns="False"
        CssClass='table_table' HeaderStyle-CssClass='table_title' >
        <Columns>
            <asp:BoundField DataField="hospitalName" HeaderText="医院名称" />
            <asp:BoundField DataField="UserCode_YY" HeaderText="注册号" />
            <asp:BoundField DataField="distinction" HeaderText="级别" />
            <asp:BoundField DataField="IsOldLeader" HeaderText="是否负责老干部保健" />
            <asp:BoundField DataField="zlsum" HeaderText="专利（元）" DataFormatString="{0:N2}" HtmlEncode="False"/>
            <asp:BoundField DataField="yysum" HeaderText="原研（元）" DataFormatString="{0:N2}" HtmlEncode="False"/>
            <asp:BoundField DataField="dddjsum" HeaderText="单独定价（元）" DataFormatString="{0:N2}" HtmlEncode="False"/>
            <asp:BoundField DataField="yzyjsum" HeaderText="优质优价（元）" DataFormatString="{0:N2}" HtmlEncode="False"/>
             <asp:BoundField DataField="fgmpbl" HeaderText="GMP以上比例" DataFormatString="{0:N2}%" HtmlEncode="False"/>
           <asp:BoundField DataField="gmpsum" HeaderText="GMP（元）" DataFormatString="{0:N2}" HtmlEncode="False"/>
            <asp:BoundField DataField="gmpbl" HeaderText="GMP比例" DataFormatString="{0:N2}%" HtmlEncode="False"/>
            <asp:BoundField DataField="DHJE" HeaderText="到货金额（元）" DataFormatString="{0:N2}" HtmlEncode="False"/>
            <asp:TemplateField HeaderText="查看详细">
                <ItemTemplate>
                    <a target="_blank" href='TraHospitalCompanyGoods.aspx?AccountId_YY=<%# DataBinder.Eval(Container.DataItem, "AccountId_YY")%>&EndDate=<%=_strEndDate %>&StartDate=<%=_strStartDate %>&AreaId=<%=_AreaId %>'>
                        查看详细</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <RowStyle CssClass="table_td" />
        <SelectedRowStyle CssClass="table_td" />
    </asp:GridView>
    &nbsp;&nbsp;&nbsp;
    <br />
    <div align="right">
        <table border="0">
            <tr>
                <td>
                    
                </td>
                <td>
                    <uc1:DbPageFlip ID="DbPageFlip1" runat="server" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="GridView2" runat="server">
    </asp:GridView>
</asp:Content>

